
import { Entity, NgField, NgObject, EntityList, NgList, NgDynamic, DynamicEntity, NgEntity } from '@farris/devkit';

@NgEntity({
    originalCode: "httj",
    nodeCode: "httjs",
    allowEmpty: true
})
export class HttjEntity extends Entity {

    @NgField({
        originalDataField: 'ID',
        dataField: 'id',
        primary: true,
        originalDataFieldType: 'String',
        initValue: '',
        path: 'ID',

        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'maxLength',
                constraints: [36],
                message: '最大长度为36',
            }
        ]
    })
    id: string;

    @NgField({
        originalDataField: 'ParentID',
        dataField: 'parentID',
        originalDataFieldType: 'String',
        initValue: '',
        path: 'ParentID',

        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'maxLength',
                constraints: [36],
                message: '最大长度为36',
            }
        ]
    })
    parentID: string;

    @NgField({
        originalDataField: 'htbh',
        dataField: 'htbh',
        originalDataFieldType: 'String',
        initValue: '',
        path: 'htbh',

        validRules: [
            {
                type: 'maxLength',
                constraints: [36],
                message: '最大长度为36',
            }
        ]
    })
    htbh: string;

    @NgField({
        originalDataField: 'htqdrq',
        dataField: 'htqdrq',
        originalDataFieldType: 'String',
        initValue: '',
        path: 'htqdrq',

        validRules: [
            {
                type: 'maxLength',
                constraints: [36],
                message: '最大长度为36',
            }
        ]
    })
    htqdrq: string;

    @NgField({
        originalDataField: 'htqdr',
        dataField: 'htqdr',
        originalDataFieldType: 'String',
        initValue: '',
        path: 'htqdr',

        validRules: [
            {
                type: 'maxLength',
                constraints: [36],
                message: '最大长度为36',
            }
        ]
    })
    htqdr: string;

    @NgField({
        originalDataField: 'htmc',
        dataField: 'htmc',
        originalDataFieldType: 'String',
        initValue: '',
        path: 'htmc',

        validRules: [
            {
                type: 'maxLength',
                constraints: [36],
                message: '最大长度为36',
            }
        ]
    })
    htmc: string;

}